<?php require_once('../qcubed.inc.php');//require( '../includes/examples.inc.php'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <div id="wrap">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=<?php _p(QApplication::$EncodingType); ?>" />
            <title><?php _p($strPageTitle); ?> - ILB CRM</title>
            <script type="text/javascript" src="<?php _p(__APPS_JS__. '/tabber.js'); ?>"></script>
            <link rel="stylesheet" type="text/css" href="<?php _p(__APPS_CSS__. '/styles.css'); ?>"></link>
            <link rel="stylesheet" type="text/css" href="<?php _p(__APPS_CSS__. '/jTab.css'); ?>"></link>
            <script type="text/javascript">
                document.write('<style type="text/css">.tabber{display:none;}</style>');
            </script>


        </head>


        <div id="headerX">
            <div id="headerLeft">
                <div id="codeVersion"><span class="headerSmall">ILB CRM Framework <?php _p(__VER__); ?></span></div>
                <div id="pageName"><?php if (isset($strPageTitle)) {
                        _p($strPageTitle);
                    } ?>
                </div>
            </div>
            <div id="headerRight">
                <?php $HeaderPerm= new Perm();
                $HeaderPerm->HeaderPrint();?>
            </div>
        </div>
        <div id="navX">
            <ul>
                <li><a href="<?php _p(__APPS_WWW__);?>" >Home</a></li> | 
                <li><a href="<?php _p(__APPS_WWW__);?>/my/mysettingsform.php">My Settings</a></li>

            </ul>
        </div>
        <div id="sidebar">
            <div id="MenuX">
                <a href="<?php _p(__SETTINGS__);?>" >Settings</a><br>
                <a href="<?php _p(__CONTACTS__);?>" >Contacts</a><br>
                <a href="<?php _p(__COM__);?>" >Communication</a><br>
                <a href="<?php _p(__SAMPLES__);?>" >Samples</a><br>
                <a href="<?php _p(__MARKETING__);?>">Marketing</a><br>
                <a href="<?php _p("#");?>">Targets</a><br>
                <a href="<?php _p("#");?>">Tenders</a><br>
                <a href="<?php _p("#");?>">Events</a><br>
                <a href="<?php _p("#");?>">Memos</a><br>
                <a href="<?php _p("#");?>">Tasks</a><br>
                <a href="<?php _p("#");?>">Schedules</a><br>
                <a href="<?php _p(__MEETING__);?>">Meetings</a><br>
            </div>
            <?
                $AuthSys = new Perm();
                $EuserArray =           $AuthSys->GetEusers();
                if ( ! empty( $EuserArray ) ){
                ?>
                    <div id="MenuX">
                    User <br>
                    <?php
                    foreach ($EuserArray as $Euser){
                        $User = $AuthSys->Translate("Role", $Euser->Id);
                            if ($User)
                               echo $Euser->Name . " <i>" . $User->__toString() . "</i><br>";
                            else
                              echo $Euser->Name ." <i>False</i><br>";
                    }

                        ?>
                    </div>

                <?Php
                
                }
                ?>
        </div>
        <div id="main">
<?php
      
    ?>

